<?php
namespace app\index\controller;

use think\Db;
use app\admin\model\Lunbo;

class IndexController extends CommonController
{
    //1.前台首页
    public function index()
    {
        //1.区块管理取出数据
        $data = $this->index_block('index');
        $this->assign('data', $data);

        return $this->fetch();
    }

    //公司简介
    public function gsjj()
    {
        //1.区块管理取出数据
        $data = $this->index_block('gsjj');
        $this->assign('data', $data);

        return $this->fetch();
    }
    //招聘中心
    public function news()
    {
        //1.区块管理取出数据
        $data = $this->index_block('news');
        //dump($data);exit();
        $this->assign('data', $data);

        return $this->fetch();
    }
}
